<?php
if (!defined("JOYEASY"))
    exit("Access Denied");
class GuestbookAction extends BaseAction {

    function _initialize() {
        parent::_initialize();
        import("@.ORG.Cxml");
    }

    public function index() {
        
    }

    public function addguest() {
        $guest = M('Guestbook');
        $guest->create();
        $book = $guest->add();
        if ($book) {
            $this->success(L('add_ok'));
        } else {
            $this->error(L('add_error'));
        }
    }

}

?>